<template>
  <div class='container_estimated'>
    <view class="custom_box" v-if="estimated && estimated.price && hasToken()">
      <image :src="staticUrl() + '/new/estimated.png'"></image>
      <view class="copywriting">{{ estimated.describe }}</view>
      <view class="custom_prices">
        <view class="txt"> {{ estimated.title }} </view>
        <view class="price"> <text>￥</text> {{ estimated.price }} </view>
      </view>
    </view>
  </div>
</template>

<script>
export default {
  props: {
    estimated: {
      type: Object,
      default: () => { }
    }
  }
}
</script>

<style scoped lang='scss'>
.custom_box {
  position: absolute;
  left: 20rpx;
  bottom: 10rpx;
  image {
    width: 308rpx;
    height: 61rpx;
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .copywriting {
    width: 120rpx;
    position: absolute;
    left: 160rpx;
    bottom: 4rpx;
    z-index: 2;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    font-size: 22rpx;
    margin-bottom: 4rpx;
  }
  .custom_prices {
    position: absolute;
    left: 12rpx;
    bottom: 2rpx;
    z-index: 2;
    .txt {
      font-size: 14rpx;
      color: #ffffff;
      line-height: 1;
    }
    .price {
      font-size: 32rpx;
      color: #ffffff;
      line-height: 1;
      font-weight: bold;
      margin: 2rpx 0 4rpx 0;
      text {
        font-size: 16rpx;
      }
    }
  }
}
</style>



